import request from '@/utils/request'

// 菜品类别列表
export function listCategory(query) {
  return request({
    url: '/system/recipe-category/list',
    method: 'get',
    params: query
  })
}

// 删除菜品类别
export function delCategory(data) {
  return request({
    url: '/system/recipe-category/delete',
    method: 'post',
	data:data
  })
}

// 新增菜品类别
export function insertCategory(data) {
  return request({
    url: '/system/recipe-category/insert',
    method: 'post',
	data:data
  }) 
}

// 编辑菜品类别
export function editCategory(data) {
  return request({
    url: '/system/recipe-category/edit',
    method: 'post',
	data:data
  }) 
}

// 所有菜品类别
export function allListCategory() {
  return request({
    url: '/system/recipe-category/allList',
    method: 'get'
  }) 
}